package com.java.lesson.lesson3;

public class Dog extends Animal{
    void bark(){
        System.out.println(name+"旺旺~");
    }
    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog.name);
        System.out.println(dog.gender);
        System.out.println(dog.age);
        dog.eat();
        dog.sleep();
        dog.bark();
    }
}

